<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link type="text/css" rel="stylesheet" media="all"
	href="${pageContext.request.contextPath}/css/global.css" />
<link type="text/css" rel="stylesheet" media="all"
	href="${pageContext.request.contextPath}/css/global_color.css" />
</head>
<body>
        <!--Logo区域开始-->
        <%@include file="../include/header.jsp"%>
        <!--导航区域结束-->
        <!--主要区域开始-->
	<div id="main">
		<form action="" method="post" class="main_form">
			<!--必填项-->
			<div class="text_info clearfix">
				<span>业务账号ID：</span>
			</div>
			<div class="input_info">
				<input type="text" value="${service.sid}" readonly class="readonly" />
			</div>
			<div class="text_info clearfix">
				<span>账务账号ID：</span>
			</div>
			<div class="input_info">
				<input type="text" value="${service.saccountid}" readonly
					class="readonly" />
			</div>
			<div class="text_info clearfix">
				<span>客户姓名：</span>
			</div>
			<div class="input_info">
				<input type="text" readonly class="readonly"
					value="${service.sname}" />
			</div>
			<div class="text_info clearfix">
				<span>身份证号码：</span>
			</div>
			<div class="input_info">
				<input type="text" readonly class="readonly"
					value="${service.sidcard}" />
			</div>
			<div class="text_info clearfix">
				<span>服务器 IP：</span>
			</div>
			<div class="input_info">
				<input type="text" value="${service.sip}" readonly class="readonly" />
			</div>
			<div class="text_info clearfix">
				<span>OS 账号：</span>
			</div>
			<div class="input_info">
				<input type="text" value="${service.sosname}" readonly
					class="readonly" />
			</div>
			<div class="text_info clearfix">
				<span>状态：</span>
			</div>
			<div class="input_info">
				<select disabled>
					<option
						<c:if test="${service.sstatus=='开通'}"> selected="selected"</c:if>>开通</option>
					<option
						<c:if test="${service.sstatus=='暂停'}"> selected="selected"</c:if>>暂停</option>
					<option
						<c:if test="${service.sstatus=='删除'}"> selected="selected"</c:if>>删除</option>
				</select>
			</div>
			<div class="text_info clearfix">
				<span>资费 ID：</span>
			</div>
			<c:if test="${service.scostname=='包20小时'}">
				<div class="input_info">
					<input type="text" value="1" class="readonly" readonly />
				</div>
			</c:if>
			<c:if test="${service.scostname=='包40小时'}">
				<div class="input_info">
					<input type="text" value="2" class="readonly" readonly />
				</div>
			</c:if>
			<c:if test="${service.scostname=='包60小时'}">
				<div class="input_info">
					<input type="text" value="3" class="readonly" readonly />
				</div>
			</c:if>
			<c:if test="${service.scostname=='包月'}">
				<div class="input_info">
					<input type="text" value="4" class="readonly" readonly />
				</div>
			</c:if>
			<div class="text_info clearfix">
				<span>资费名称：</span>
			</div>
			<div class="input_info">
				<input type="text" value="${service.scostname}" readonly
					class="width200 readonly" />
			</div>
			<!--操作按钮-->
			<div class="button_info clearfix">
				<input type="button" value="返回" class="btn_save"
					onclick="location.href='${pageContext.request.contextPath}/showServicelist.do';" />
			</div>
		</form>
	</div>
	<!--主要区域结束-->
	<div id="footer"></div>
	<script type="text/javascript" language="javascript">
        //根据权限显示信息
        var listPrivs = "${sessionScope.listPrivs}";
        for(var p of listPrivs){
        if(p=="1")  {document.getElementById("p1").style.display="block";}
        if(p=="2")  {document.getElementById("p2").style.display="block";}
        if(p=="3")	{document.getElementById("p3").style.display="block";}
        if(p=="4")	{document.getElementById("p4").style.display="block";}
        if(p=="5")	{document.getElementById("p5").style.display="block";}
        if(p=="6")	{document.getElementById("p6").style.display="block";}
        if(p=="7")	{document.getElementById("p7").style.display="block";}
        }
        </script>
</body>
</html>
